package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @description: 登录dto
 * @author: 徐文升
 * @create: 2022-03-26 22:48
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "LoginDto对象")
public class LoginDto {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}
